<template>
  <div>
    <Pager :total="total" :current="current" @pageChange="handlePageChange"/>
  </div>
</template>

<script>
import Pager from "./index.vue";

export default {
  name: 'App',
  components: {
    Pager,
  },
  data() {
    return {
      total: 302,
      current: 1
    }
  },
  methods: {
    handlePageChange(newPage) {
      this.current = newPage
    },
  }
}
</script>

<style lang="less">

</style>
